#ifndef __PROTOCOL_H__
#define __PROTOCOL_H__

#define INNER_PROT_HEADER 0x5A
#define INNER_PAD_LEN 5

int32_t inner_wrapper(uint8_t *poutbuf, int32_t outbuf_len, uint8_t cmd, uint8_t *pdata, int32_t data_len);
int32_t inner_extractor(uint8_t *pinbuf, int32_t inbuf_len, uint8_t *pcmd, uint8_t *pdata, int32_t *pdata_len);
int32_t inner_packet_receive(UART_DEVICE_E dev, unsigned char *pbuf, unsigned int receive_len, unsigned int wait_ms);


#endif

